/**  
 * Project Name:api-webhook  
 * File Name:BankCardEntity.java  
 * Package Name:com.example.service.webhook.bank.entity  
 * Date:2016年7月21日上午11:51:04  
 * Copyright (c) 2016, yuandong@51dojo.com All Rights Reserved.  
 *  
*/  
  
package com.example.service.webhook.business.bank.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.example.service.webhook.repository.base.Saveable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**  
 * ClassName:BankCardEntity <br/>  
 * Function: 网银卡列表 <br/>  
 * Date:     2016年7月21日 上午11:51:04 <br/>  
 * @author   yuandong  
 * @version    
 * @since    JDK 1.6
 * Modified by liyang on 20171019 接口升级
 * @see        
 */
@JsonIgnoreProperties(value = { "primaryVal", "keyColumns", "tableName" }, ignoreUnknown = true)
public class BankCardEntity implements Saveable{
	
	private long id;
	private String cardId;
	private String userId;
    private String cardType;

	private String bankName;
    private String fullCardNum;
    private String cardNum;
    private String nameOnCard;
    private BigDecimal balance;
    private BigDecimal creditLimit;
    private Date openTime;

	/**
	 * 银行简称 (例:招商银行-简称“CMB”,详见“附录:服务支持列表”)
	 * 说明：20171019接口升级，新增字段
	 */
	private String bankId;

	/**
	 * 开户行
	 * 说明：20171019接口升级，新增字段
	 */
	private String openBank;

	/**
	 * 说明：20171019接口升级，新增字段
	 * 本期账单金额
	 */
	private BigDecimal currentBillAmt;

	/**
	 * 说明：20171019接口升级，新增字段
	 * 本期已还金额
	 */
	private BigDecimal currentBillPaidAmt;

	/**
	 * 说明：20171019接口升级，新增字段
	 * 本期剩余应还金额
	 */
	private BigDecimal currentBillRemainAmt;

	/**
	 * 说明：20171019接口升级，新增字段
	 * 本期剩余最低应还金额
	 */
	private BigDecimal currentBillRemainMinPayment;

    private Date createTime;
    private Date lastModifyTime;
    
    private static final String[] keyColumns       = { "id" };
    private static final String   tableName        = "t_card";

    @Override
    public String getTableName() {
        return tableName;
    }

    @Override
    public String[] getKeyColumns() {
        return keyColumns;
    }
    
    @Override
    public String getPrimaryVal() {
        return String.valueOf(id);
    }
    
    
    
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getCardId() {
		return cardId;
	}
	public void setCardId(String cardId) {
		this.cardId = cardId;
	}
	public String getCardType() {
		return cardType;
	}
	public void setCardType(String cardType) {
		this.cardType = cardType;
	}
	public String getBankName() {
		return bankName;
	}
	public void setBankName(String bankName) {
		this.bankName = bankName;
	}
	public String getFullCardNum() {
		return fullCardNum;
	}
	public void setFullCardNum(String fullCardNum) {
		this.fullCardNum = fullCardNum;
	}
	public String getCardNum() {
		return cardNum;
	}
	public void setCardNum(String cardNum) {
		this.cardNum = cardNum;
	}
	public String getNameOnCard() {
		return nameOnCard;
	}
	public void setNameOnCard(String nameOnCard) {
		this.nameOnCard = nameOnCard;
	}
	public BigDecimal getBalance() {
		return balance;
	}
	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}
	public BigDecimal getCreditLimit() {
		return creditLimit;
	}
	public void setCreditLimit(BigDecimal creditLimit) {
		this.creditLimit = creditLimit;
	}
	public Date getOpenTime() {
		return openTime;
	}
	public void setOpenTime(Date openTime) {
		this.openTime = openTime;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getBankId() {
		return bankId;
	}

	public void setBankId(String bankId) {
		this.bankId = bankId;
	}

	public String getOpenBank() {
		return openBank;
	}

	public void setOpenBank(String openBank) {
		this.openBank = openBank;
	}

	public BigDecimal getCurrentBillAmt() {
		return currentBillAmt;
	}

	public void setCurrentBillAmt(BigDecimal currentBillAmt) {
		this.currentBillAmt = currentBillAmt;
	}

	public BigDecimal getCurrentBillPaidAmt() {
		return currentBillPaidAmt;
	}

	public void setCurrentBillPaidAmt(BigDecimal currentBillPaidAmt) {
		this.currentBillPaidAmt = currentBillPaidAmt;
	}

	public BigDecimal getCurrentBillRemainAmt() {
		return currentBillRemainAmt;
	}

	public void setCurrentBillRemainAmt(BigDecimal currentBillRemainAmt) {
		this.currentBillRemainAmt = currentBillRemainAmt;
	}

	public BigDecimal getCurrentBillRemainMinPayment() {
		return currentBillRemainMinPayment;
	}

	public void setCurrentBillRemainMinPayment(BigDecimal currentBillRemainMinPayment) {
		this.currentBillRemainMinPayment = currentBillRemainMinPayment;
	}
}
  
